/******************************************************************************
 * @File name   :      PackageInventoryServiceImpl.java
 *
 * @Author      :      JIZHANGS
 *
 * @Date        :      Jul 22, 2015
 *
 * @Copyright Notice: 
 * Copyright (c) 2015 Capgemini, Inc. All  Rights Reserved.
 * This software is published under the terms of the Capgemini Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * Jul 22, 2015 11:42:01 AM        JIZHANGS     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.crmdp.dealer.mars.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cap.bts.crmdp.dealer.mars.service.IMarsCardInventoryService;
import com.cap.bts.crmdp.dealer.purchase.dao.ICardInventoryDao;
import com.cap.bts.crmdp.dealer.purchase.domain.CardInventory;
import com.cap.bts.framework.common.exception.AppException;
import com.cap.bts.framework.common.service.impl.BaseServiceImpl;

/**
 *
 */
@Transactional(rollbackFor = AppException.class)
@Service
public class MarsCardInventoryServiceImpl extends BaseServiceImpl implements IMarsCardInventoryService {

    @Resource(name = "cardInventoryDao")
    private ICardInventoryDao cardInventoryDao;
    /**
     * {@inheritDoc} 
     * overridden:
     * @Date        :      Aug 23, 2015
     * @see com.cap.bts.crmdp.dealer.purchase.service.ICardInventoryService#getCardInventoryInfo(com.cap.bts.crmdp.dealer.purchase.dto.PackageInventoryQueryDto)
    **/
    @Override
    public CardInventory getCardInventoryInfo(Long cardDefId,Long dealerId)
        throws AppException {
        return cardInventoryDao.getCardInventoryInfo(cardDefId,dealerId);
    }

}
